package com.zhenhao.xsq.ui.activity.user.presenter;

import com.zhenhao.xsq.data.api.HttpAPIWrapper;
import com.zhenhao.xsq.ui.activity.user.UserManagerActivity;
import com.zhenhao.xsq.ui.activity.user.contract.UserManagerContract;

import javax.inject.Inject;

import androidx.annotation.NonNull;
import io.reactivex.disposables.CompositeDisposable;

/**
 * @author William
 * @Package com.cxwl.xlxgj.ui.activity.patrol
 * @Description: presenter of PatrolRecordActivity
 * @date 2019/04/17 14:23:19
 */
public class UserManagerPresenter implements UserManagerContract.UserManagerContractPresenter{

    HttpAPIWrapper httpAPIWrapper;
    private final UserManagerContract.View mView;
    private CompositeDisposable mCompositeDisposable;
    private UserManagerActivity mActivity;

    @Inject
    public UserManagerPresenter(@NonNull HttpAPIWrapper httpAPIWrapper, @NonNull UserManagerContract.View view, UserManagerActivity activity) {
        mView = view;
        this.httpAPIWrapper = httpAPIWrapper;
        mCompositeDisposable = new CompositeDisposable();
        this.mActivity = activity;
    }
    @Override
    public void subscribe() {

    }

    @Override
    public void unsubscribe() {
        if (!mCompositeDisposable.isDisposed()) {
             mCompositeDisposable.dispose();
        }
    }

}